package class_code.class_1_顺序表;

import java.util.Arrays;

public class SeqList<T> {

    private int length;
    private T[] datas;


    public static void main(String[] args) {
        int[] arr = {1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
        int length = 7;

        int index = 3;
        int value = 10;

        for (int i = length; i >= index - 1; i--) {
            arr[i + 1] = arr[i];
            System.out.println(Arrays.toString(arr));
        }
        arr[index] = value;
        System.out.println(Arrays.toString(arr));


    }
}